/**
 * 路由
 */

import { RouteRecordRaw, createRouter, createWebHistory } from "vue-router";

import Home from '../views/home.vue';
import Watch from '../views/watch.vue';
 
const routes: RouteRecordRaw[] = [{
    path: '/',
    component: Home,
    children:[{
        path:'watch',
        name: 'Watch',
        component:Watch
    }]
},{
    path: '/watch',
    component: Watch
}]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router;